package com.mondo.financialwallet.presentation.model;

import android.os.Parcel;
import android.os.Parcelable;

public class DAppInfoModel implements Parcelable {

    private String name;

    private String description;

    private String cover;

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public String getCover() {
        return cover;
    }

    public DAppInfoModel(String name, String cover) {
        this.name = name;
        this.cover = cover;
    }

    public DAppInfoModel(String name, String description, String cover) {
        this.name = name;
        this.description = description;
        this.cover = cover;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(description);
        dest.writeString(cover);
    }

    public static final Parcelable.Creator<DAppInfoModel> CREATOR = new Creator<DAppInfoModel>() {

        @Override
        public DAppInfoModel createFromParcel(Parcel source) {
            return new DAppInfoModel(source.readString(), source.readString(), source.readString());
        }

        @Override
        public DAppInfoModel[] newArray(int size) {
            return new DAppInfoModel[size];
        }
    };
}
